import request from "../utils/request.js"

export function signInByWeChat(params) {
  return request({
    url: '/user/getToken',
    method: 'post',
    data: params,
    header: {
      'content-type': 'application/x-www-form-urlencoded'
    }
  })
}

export function bindWeChatUser(params) {
  return request({
    url: '/user/signup/bindWeChatUser',
    method: 'post',
    data: params
  })
}

export function getSignupProgress() {
  return request({
    url: '/user/signup/getSignupProgress',
    method: 'get'
  })
}

export function saveBaseInfo(params) {
  return request({
    url: '/user/signup/saveBaseInfo',
    method: 'post',
    data: params
  })
}

export function saveNormalStudent(params) {
  return request({
    url: '/user/signup/saveNormalStudent',
    method: 'post',
    data: params
  })
}

export function saveTeacher(params) {
  return request({
    url: '/user/signip/saveTeacher',
    method: 'post',
    data: params
  })
}